package problem2;

import java.util.Date;

public class TV extends Household {
    private int channel = 1;
    private int volumnLevel = 1;

    public TV(String brand, Date productDate) {
        super(brand, productDate);
    }

    public int getChannel() {
        return channel;
    }

    public void setChannel(int channel) {
        this.channel = channel;
    }

    public int getVolumnLevel() {
        return volumnLevel;
    }

    public void setVolumnLevel(int volumnLevel) {
        this.volumnLevel = volumnLevel;
    }


    @Override
//TV: brand = TCL productDate = 2024-3-11 channel = 1 volumnLevel = 1
    public String toString() {
        return "TV: " + "brand = " + super.getBrand() +
                " productDate = " + super.getProductDateString()+
                " channel = " + channel +
                " volumnLevel = " + volumnLevel;
    }
}
